<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Logagent: src/logagent-config.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Logagent
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">logagent-config.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="logagent-config_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:a320429f37ff9edf2fa4d375566bae3ba"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-config_8h.html#a320429f37ff9edf2fa4d375566bae3ba">ENUM_CONFIG_LOCATION</a> { <a class="el" href="logagent-config_8h.html#a320429f37ff9edf2fa4d375566bae3baa77be448edfc6d8a1240d5bba1026980a">CONFIG_LOCAL</a>, 
<a class="el" href="logagent-config_8h.html#a320429f37ff9edf2fa4d375566bae3baa5419c5888bf7300d2f2eb301e3ad6e4b">CONFIG_NETWORK</a>, 
<a class="el" href="logagent-config_8h.html#a320429f37ff9edf2fa4d375566bae3baa0fd2109089e287659eb0e9f5dcedf8a9">CONFIG_ALIYUN</a>
 }</td></tr>
<tr class="separator:a320429f37ff9edf2fa4d375566bae3ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a9273145fda7829b9c47f93f4bafaf1c6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-config_8h.html#a9273145fda7829b9c47f93f4bafaf1c6">logagent_config_load_from_file</a> (const char *filename, char *json)</td></tr>
<tr class="separator:a9273145fda7829b9c47f93f4bafaf1c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76d71c65cdcd35b9b75cff62fa777afb"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-config_8h.html#a76d71c65cdcd35b9b75cff62fa777afb">logagent_config_load_from_network</a> (const char *url, char *json)</td></tr>
<tr class="separator:a76d71c65cdcd35b9b75cff62fa777afb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a198c95e36852439a585b18cbf23b61e8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-config_8h.html#a198c95e36852439a585b18cbf23b61e8">logagent_config_load_from_aliyun</a> (const char *url, char *json)</td></tr>
<tr class="separator:a198c95e36852439a585b18cbf23b61e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="a320429f37ff9edf2fa4d375566bae3ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a320429f37ff9edf2fa4d375566bae3ba">&#9670;&nbsp;</a></span>ENUM_CONFIG_LOCATION</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="logagent-config_8h.html#a320429f37ff9edf2fa4d375566bae3ba">ENUM_CONFIG_LOCATION</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a320429f37ff9edf2fa4d375566bae3baa77be448edfc6d8a1240d5bba1026980a"></a>CONFIG_LOCAL&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a320429f37ff9edf2fa4d375566bae3baa5419c5888bf7300d2f2eb301e3ad6e4b"></a>CONFIG_NETWORK&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a320429f37ff9edf2fa4d375566bae3baa0fd2109089e287659eb0e9f5dcedf8a9"></a>CONFIG_ALIYUN&#160;</td><td class="fielddoc"></td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a198c95e36852439a585b18cbf23b61e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a198c95e36852439a585b18cbf23b61e8">&#9670;&nbsp;</a></span>logagent_config_load_from_aliyun()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int logagent_config_load_from_aliyun </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>json</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a9273145fda7829b9c47f93f4bafaf1c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9273145fda7829b9c47f93f4bafaf1c6">&#9670;&nbsp;</a></span>logagent_config_load_from_file()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int logagent_config_load_from_file </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>json</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>load logagent config from local file </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filename</td><td>the full path of config file </td></tr>
    <tr><td class="paramname">json</td><td>json string loaded from this file </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>zero for success </dd></dl>

</div>
</div>
<a id="a76d71c65cdcd35b9b75cff62fa777afb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a76d71c65cdcd35b9b75cff62fa777afb">&#9670;&nbsp;</a></span>logagent_config_load_from_network()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int logagent_config_load_from_network </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>json</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>load logagent config from network </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">url</td><td>the full url </td></tr>
    <tr><td class="paramname">json</td><td>json string pull from the url </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>zero for success </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
